4

Customizing avenue.quark

Different people tend to use a tool in different ways. Fortunately, avenue.quark offers a variety of options that help you to customize the way it works to fit the way you work.

You can control the color of tagged and untagged content (Utilities > Show Tagged Content), set the color of the XML markers that display when you choose View > Show Invisibles, and turn dynamic content updating on and off.


Setting Defaults

Avenue.quark uses several default settings to control how tagged content is displayed, specify the color of marker text, and turn dynamic content updating on and off. These settings are saved with the application and are never saved with documents. To modify avenue.quark preferences:

1. Choose Edit > Preferences > avenue.quark to display the avenue.quark Preferences dialog box.


Use the avenue.quark Preferences dialog box to specify how tagged text appears in a document.

2. To specify the color that is used to display tagged content when you choose Utilities > Show Tagged Content, click the Tagged Text button and then choose a color in the resulting dialog box.

3. To specify how avenue.quark handles rule-based tagging, check or uncheck the check boxes in the Rule/Position Options area:

For more information about how rule-based tagging works, see "Understanding Rule Weighting" in this chapter.

4. To specify the color that is used to display non-tagged content when you choose Utilities > Show Tagged Content, click the Untagged Text button and then choose a color in the resulting dialog box.

5. To specify the color of the markers that display when you choose View > Show Invisibles, click the Marker Text button and then choose a color in the resulting dialog box.

6. To specify that the content of elements in active XML documents should be continuously updated to reflect the content of the QuarkXPress items they're linked to, check Enable Dynamic Content Update. You might want to uncheck this button if QuarkXPress seems to be running very slowly when editing large XML documents; you can manually update the content when this box is unchecked by clicking the Synchronize Content button in the XML Workspace palette.

7. Click OK.


Understanding Rule Weighting

When the selected text can be tagged using more than one tagging rule, avenue.quark displays the Choose Rule/Position dialog box (unless Always use the first applicable tagging rule is checked in the avenue.quark Preferences dialog box). The rules that can be applied are then sorted according to their weight and displayed in the Element Type field.

Tagging rules are weighted as follows, with items nearer the top of the list being weighted higher than items nearer the bottom:

For example, say you have a paragraph style named "Body-P" and a character style sheet named "Italic-C," and you're applying the "Italic-C" style sheet to emphasized words in your "Body-P" paragraphs. You'd like to tag all of your paragraphs as <bodyText> elements, with the emphasized words in those paragraphs tagged as <emphasized> elements.

When avenue.quark encounters an "Italic-C" word in a "Body-P" paragraph, two rules can be applied: the rule that says text styled as "Body-P" should be tagged as <bodyText>, and the rule that says text styled as "Italic-C" should be tagged as <emphasized>. But the second rule is given more weight, according to the scale above, and thus is listed first (and chosen automatically if you click Choose Automatically). As a result, your XML looks something like this:

<bodyText>I want the <emphasized>other</emphasized> banana.</bodyText>

This example assumes that the DTD allows the <bodyText> element to contain both PCDATA and <emphasized> elements.

The rule weighting algorithm is designed to make the Choose Automatically button in the Choose Rule/Position dialog box work correctly in most tagging situations. If this button does not give you the results you want, though, you can still choose a rule manually in the Element Type field.